package pl.edu.agh.strategies;

import static pl.edu.agh.Values.maxPeople;

import java.util.List;
import java.util.Random;

public class DifferentFromLastWeek extends AbstractStrategy{	
	public boolean decide(List<Integer> history) {
		int predicted;
		if(history.size() > 7)
		{
			predicted = history.get(history.size() - 7);
		}
		else
		{
			predicted = new Random().nextInt() % maxPeople;
		}
		return rateAndSave(predicted);
	}
}
